{include file="public:header" /}
<!--文章列表-->
<div class="pad_lr_10" >
    <form name="searchform" action="{:url('index')}"  method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="menuid" value="{$menuid}" />
                发布时间：
                <input type="text" name="time_start" id="time_start" onclick="myCalendar();" readonly class="date" size="12" value="{$search.time_start}">
                -
                <input type="text" name="time_end" id="time_end" onclick="myCalendar();" readonly class="date" size="12" value="{$search.time_end}">
                 &nbsp;&nbsp;所属分类：
                <select class="J_cate_select mr10" data-pid="0" data-uri="{:url('ActivityCate/ajaxGetchilds')}" data-selected="{$search.selected_ids}"></select>
                <input type="hidden" name="cate_id" id="J_cate_id" value="{$search.cate_id}" />
                &nbsp;&nbsp;状态:
                <select name="status">
                <option value="">-所有-</option>
                <option value="1" {eq name="search['status']" value="1"}selected="selected"{/eq}>启用</option>
                <option value="0" {eq name="search['status']" value="0"}selected="selected"{/eq}>禁用</option>
                </select>
                &nbsp;&nbsp;关键词 :
                <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                <input type="submit" name="search" class="btn" value="搜索" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="{:url('ajaxEdit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left">标题</th>
                <th width="100">所属类别</th>
                <th width=120>发布时间</th>
                <th align="60"><span data-tdtype="order_by" data-field="ordid">排序</span></th>
                <th width="40">状态</th>
                <th width="80">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="val"}
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="{$val.id}" class="tdedit" style="">{$val.title}</span>{notempty name="val['img']"}<span class="attachment_icon J_attachment_icon" file-type="image" file-rel="{$val.img}"><img src="__IMG__/image_s.gif" /></span>{/notempty}</td>
                <td align="center">{$val.activityCate.name}</td>
                <td align="center">{$val.create_time|date='Y-m-d H:i:s',###}</td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span></td>
                <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/toggle_{if condition="$val.status eq 1"}enabled{else/}disabled{/if}.gif" /></td>
                <td align="center">{:rights($options,$val['id'],$val['title'],$menuid)}</td>
            </tr>
            {/volist}
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('delete')}" data-name="id" data-msg="确定要删除该条记录么?" value="删除" />
        <div id="pages">{$pages}</div>
    </div>
    </div>
</div>
{include file="public:footer" /}
<script src="__PUBLIC__/js/calendar/WdatePicker.js" charset="utf-8"></script>
<script>
$('.J_cate_select').cate_select({top_option:'请选择'});

</script>
</body>
</html>
